# Fix for CanoScan scanners showing black line in the middle of scans

## On Arch Linux:

- `cd` to this directory
- run `makepkg -si`
- install `simple-scan` or `xsane` to scan as usual
`sudo pacman -S simple-scan`


## On Debian Linux:

This might work (not tested):

```
sudo apt-get install libusb-dev build-essential libsane-dev libavahi-client-dev libavahi-glib-dev
git clone https://salsa.debian.org/debian/sane-backends.git
cd sane-backends/
git checkout tags/upstream/1.0.25

./configure --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu --sysconfdir=/etc --localstatedir=/var  --

make
sudo make install
# reboot
```

TODO: Add the Arch Linux patch into Debian instructions so that latest sane can be used.

source: [https://askubuntu.com/a/1003753](https://askubuntu.com/a/1003753)



# How it was prepared

Got the PKGBUILD files from: [https://git.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/sane](https://git.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/sane)

Then added the patch from here on PKGBUILD:
[https://bbs.archlinux.org/viewtopic.php?pid=1762752#p1762752](https://bbs.archlinux.org/viewtopic.php?pid=1762752#p1762752)

source: [https://bbs.archlinux.org/viewtopic.php?id=233725](https://bbs.archlinux.org/viewtopic.php?id=233725)